﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/MasterAdmin.master" AutoEventWireup="true" CodeFile="Cargo.aspx.cs" Inherits="Admin_Emprego_Cargo" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="header_search" Runat="Server">

<div id="navigation">

        	<div id="navigation_wrap">

                <!-- Start contact info area -->
                
                <div id="conteactinfo">                
                    <div id="logo">    
                         <a href="../Default.aspx" title="Home"><img src="../../App_Themes/Eutoliso/images/logo-orange.png" alt=""/></a>  
                    </div>    
                    <span></span>                
                </div>

                <!-- End contact info area -->


  <!-- Start navigation -->
                    <div id="navi">
                        <ul>
                            <li><a href="AreaAtuacao.aspx" title="Home">
                                <img src="../../App_Themes/Eutoliso/images/home32.png" alt=""/></a>
                            </li>
                            
                            <li><a href="#" title="Mensagens">
                                <img src="../../App_Themes/Eutoliso/images/mail32.png" alt=""/></a>
                            </li>

                            <li><a href="#" title="Configurações">
                                <img src="../../App_Themes/Eutoliso/images/spanner32.png" alt=""/></a>
                            </li>

                            <li><a href="#" title="Área de Análises">
                                <img src="../../App_Themes/Eutoliso/images/bargraph32.png" alt=""/></a>
                            </li>

                            <li><a href="#" title="Pesquisa Rápida">
                                <img src="../../App_Themes/Eutoliso/images/search32.png" alt=""/></a>
                            </li>

                            <li class="color8">
                                 <asp:LoginName ID="LoginName1" runat="server" />
                                 
                            </li>
                            
                            <li><a  title="Sair">
                                
                                <asp:LoginStatus ID="LoginStatus2" runat="server" LoginText="Entrar"  LogoutAction="Redirect" LogoutPageUrl="~/Index.aspx" LogoutImageUrl="~/App_Themes/Eutoliso/images/unlockgreen32.png" />
                                </a>
                         
                            </li>
                        </ul>
                    </div>
                <!-- End navigation -->

</div>
        
        </div>
        <!-- End navigation area -->
        <div class="clear"></div>
        <!-- Start Social & Logo area -->
        <div id="header_small">
        	<!-- Start Social area -->
            
           
        	<div class="social"> </div>
                
            </div>
            <!-- End Socialarea -->
            
            <!-- Start Logo area -->
           
            <!-- End Logo area -->


</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="login_header" Runat="Server">
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="header_pos_menu" Runat="Server">
</asp:Content>
<asp:Content ID="Content5" ContentPlaceHolderID="ContentPlaceHolder2" Runat="Server">
</asp:Content>
<asp:Content ID="Content6" ContentPlaceHolderID="body_pre_central" Runat="Server">

    <!-- Start H1 Title -->
    <div class="titlesnormal">
    
    	<h1>Bem-Vindo user XXX, sua ultima visita foi em: XX/XX/XXXX ----- Sair</h1>
        
        <span></span>
    <!-- End H1 Title -->
    </div>
        <div class="boxes-padding fullpadding">
            	
                

    </div> 
    

</asp:Content>
<asp:Content ID="Content7" ContentPlaceHolderID="body_central" Runat="Server">

<!-- Start Box -->
        <div class="boxes-full">
       
        	<div class="boxes-padding fullpadding">
            	
                <!-- Start None Split Section -->
            	<div class="splitnone">
                
                	<div id="portfolio-container">
                    
                    	<!-- Start 4 column portfolio -->
                        <div class="element web">
                        
                        	 <div class="col1">           				
		                        <div class="wrapper_01">
                                       <li class="under_02"><a href="../../Index.aspx" class="active">Página Inicial</a></li>
		                               <li class="under_02"><a href="../Default.aspx">Voltar ao Menu Principal</a></li>			                           
			                           <li class="under_02"><a href="Emprego.aspx">Voltar à Seção Empregos</a></li>
                                       <li class="under_02"><a href="Cargo.aspx">Gerenciar Cargos</a></li>			                           
			                           
			                           <li class="under_02"><a href="#">Sair</a></li>
			                    </div>									
                            </div>
                        
                        </div>
                      
                        <div class="element graphic">

                         <!-- Div Botões de Gerenciamento-->
                           <asp:Button ID="btnNovoCargo" runat="server" Text="Adicionar Novo Cargo" 
                                onclick="btnNovoCargo_Click"/>
                            <asp:Button
                               ID="btnWebWindowVisArAtuacao" runat="server" Text="Visualizar Área de Atuação" 
                                onclick="btnWebWindowVisArAtuacao_Click" />
                           <asp:Button ID="btnAddAreaAtuacao" runat="server" 
                                Text="Adicionar Nova Área de Atuação" onclick="btnAddAreaAtuacao_Click"/>                        	                                                             
                           <asp:Button ID="btnGerenciarCargo" runat="server" Text="Gerenciar Cargo" 
                                onclick="btnGerenciarCargo_Click" /> 
                           <asp:Button ID="btnGerenciarAAtuacao" runat="server" Text="Gerenciar Área de Atuação" /> 
                           <asp:Button ID="btnFechar" runat="server" Text="Fechar" 
                                onclick="btnFechar_Click" style="height: 26px" />
  
                        </div> 
                       
                        
                        <div class="element2 web">
                            
                           
                           <!-- WebWindow Visualizar Área de Atuação -->
                            <custom:WebWindow ID="WebWindowVisualizaAreaAtuacao" Hide="true" WindowTitleText="" runat="server">
                            
                             <asp:Label ID="lblVisualizaAreaAtuacao" runat="server" Text="View Área de Atuação" 
                                Visible="false" Font-Bold="True" Font-Size="Larger" ForeColor="#666666"></asp:Label> <br /> <br />  
                                                         
                            <!-- GridView Visualizar Área de Atuação-->
                            <asp:GridView ID="grvEmpregoCargo" runat="server" DataSourceID="SqlDataSource2" 
                                AllowSorting="True" AutoGenerateColumns="False">
                                <Columns>
                                    <asp:BoundField DataField="Área de Atuação" HeaderText="Área de Atuação" 
                                        SortExpression="Área de Atuação" />
                                </Columns>  
                                                                                        
                            </asp:GridView>
                            <br />    
                             <asp:Button ID="btnFecharwebWindowVisAAtuacao" runat="server" Text="Fechar" Visible="false"
                                   onclick="btnFecharwebWindowVisAAtuacao_Click" />
                             
                            </custom:WebWindow> 
                             
                            
                           <!-- Adiciona Novo Cargo --> 
                            <custom:WebWindow ID="webWindowAddNovoCargo" Hide="true" WindowTitleText="" runat="server">

                            <asp:Label ID="lblAddNovoCargo" runat="server" Text="Adicionar Novo Cargo" 
                                Visible="false" Font-Bold="True" Font-Size="Larger" ForeColor="#666666"></asp:Label> <br /> <br />                           
                            <asp:Label ID="lblNomeCargo" runat="server" Text="Cargo" Visible="False"></asp:Label> <br />
                            <asp:TextBox ID="txtNomeCargo" runat="server" Width="200px" Visible="False"></asp:TextBox> <br />
                            <asp:Label ID="lblNomeAtuacao" runat="server" Text="Atuação" Visible="False"></asp:Label> <br />
                            <asp:TextBox ID="txtNomeAtuacao" runat="server" Width="200px" Visible="False"></asp:TextBox> <br />
                            <asp:Label ID="lblAreaDeAtuacao" runat="server" Text="Área de Atuação" 
                                 Visible="False"></asp:Label> <br />
                            <asp:DropDownList ID="ddlAreaDeAtuacao" runat="server" Width="200px" 
                                 Visible="False">
                            </asp:DropDownList>
                            <br />  <br />
                            <asp:Button ID="btnAddNovoCargo" runat="server" Text="Inserir" Visible="False" />
                            <asp:Button ID="btnCancelCargo" runat="server" Text="Cancelar" 
                                onclick="btnCancelCargo_Click" Visible="False" />
                            
                           </custom:WebWindow>

                          <!-- WebWindow Add Área de Atuação -->
                          <custom:WebWindow ID="webWAddArAtuacaoCargo" Hide="true" WindowTitleText="Adicionar Nova Área de Atuação" runat="server">
                           
                              <asp:DetailsView ID="EmpregoArAtuacaoDetailsView" runat="server" Height="50px" 
                                    Width="312px" AutoGenerateRows="False" 
                                    DataSourceID="EntityDataSourceEmpAreaAtuacao"  DefaultMode="Insert" 
                                   DataKeyNames="eat_id">
                                    <Fields>
                                      
                                        <asp:BoundField DataField="eat_nome" HeaderText="Área de Atuação" 
                                            SortExpression="eat_nome" />
                                        <asp:CommandField ShowInsertButton="True" />
                                    </Fields>

                                </asp:DetailsView>                           
                           
                           </custom:WebWindow>


                           <!-- GridView Gerencia Cargos-->
                             <asp:GridView ID="grvGerenciaCargo" runat="server" AutoGenerateColumns="False" Visible="false" 
                                 DataKeyNames="emc_id" DataSourceID="EntityDataSourceCargos">
                                 <Columns>
                                     <asp:BoundField DataField="emc_id" HeaderText="emc_id" ReadOnly="True" 
                                         SortExpression="emc_id" />
                                     <asp:BoundField DataField="emc_nome" HeaderText="emc_nome" 
                                         SortExpression="emc_nome" />
                                     <asp:BoundField DataField="emc_atuacao" HeaderText="emc_atuacao" 
                                         SortExpression="emc_atuacao" />
                                     <asp:BoundField DataField="emc_areaatuacao" HeaderText="emc_areaatuacao" 
                                         SortExpression="emc_areaatuacao" />
                                 </Columns>
	                        </asp:GridView>


                            <asp:ObjectDataSource ID="ObjectDataSource2" runat="server"></asp:ObjectDataSource>

                            <asp:SqlDataSource ID="SqlDataSource2" runat="server" 
                                ConnectionString="<%$ ConnectionStrings:eutolisocomConnectionString %>" 
                                
                                SelectCommand="SELECT eat_nome [Área de Atuação] FROM [empregoareaatuacao]"></asp:SqlDataSource>

                            <asp:EntityDataSource ID="EntityDataSourceEmpAreaAtuacao" runat="server" 
                                ConnectionString="name=eutolisoEntities" 
                                DefaultContainerName="eutolisoEntities" EnableDelete="True" 
                                EnableFlattening="False" EnableInsert="True" EnableUpdate="True" 
                                EntitySetName="empregoareaatuacao" EntityTypeFilter="empregoareaatuacao">
                            </asp:EntityDataSource>
                        </div>


                        <div class="element2 web">
                        
                         

                                                                                                                                                                                              
                           
                                                                                                                                                           
                        </div>       


                        <div class="element2 web">
                       
                            




                             <asp:EntityDataSource ID="EntityDataSourceCargos" runat="server" 
                                 ConnectionString="name=eutolisoEntities" 
                                 DefaultContainerName="eutolisoEntities" EnableDelete="True" 
                                 EnableFlattening="False" EnableInsert="True" EnableUpdate="True" 
                                 EntitySetName="empregocargo">
                             </asp:EntityDataSource>
                         </div>                                                                                    

                         <div class="element2 web">
                           
                         
                                                                                                                                           
                         </div>       
                  
                       
                        <!-- End 4 column portfolio -->
                    
                    </div>
                
                </div>
            	<!-- End None Split Section -->

            </div>

            <span class="box-arrow"></span>
        
        </div>
        <!-- End Box -->



</asp:Content>
<asp:Content ID="Content8" ContentPlaceHolderID="body_pos_central" Runat="Server">
</asp:Content>
<asp:Content ID="Content9" ContentPlaceHolderID="body_pos_a_central" Runat="Server">
</asp:Content>
<asp:Content ID="Content10" ContentPlaceHolderID="footer_twitter_realtime" Runat="Server">
</asp:Content>
<asp:Content ID="Content11" ContentPlaceHolderID="footer_search" Runat="Server">
</asp:Content>
<asp:Content ID="Content12" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
</asp:Content>

